﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.Experimental.Rendering.ExternalGPUProfiler
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System.Runtime.CompilerServices;
using UnityEngine.Bindings;

#nullable disable
namespace UnityEngine.Experimental.Rendering
{
  /// <summary>
  ///         <para>The ExternalGPUProfiler API allows developers to programatically take GPU frame captures in conjunction with supported external GPU profilers.
  /// 
  /// GPU frame captures can be used to both analyze performance and debug graphics related issues.</para>
  ///       </summary>
  [NativeHeader("Runtime/Graphics/GraphicsScriptBindings.h")]
  public static class ExternalGPUProfiler
  {
    /// <summary>
    ///   <para>Begins the current GPU frame capture in the external GPU profiler.</para>
    /// </summary>
    [FreeFunction("ExternalGPUProfilerBindings::BeginGPUCapture")]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern void BeginGPUCapture();

    /// <summary>
    ///   <para>Ends the current GPU frame capture in the external GPU profiler.</para>
    /// </summary>
    [FreeFunction("ExternalGPUProfilerBindings::EndGPUCapture")]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern void EndGPUCapture();

    /// <summary>
    ///   <para>Returns true when a development build is launched by an external GPU profiler.</para>
    /// </summary>
    [FreeFunction("ExternalGPUProfilerBindings::IsAttached")]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern bool IsAttached();
  }
}
